import {loginParamsType} from '@/pages/user/data.d'
import {requestType} from  '@/utils/request'


export const loginService = (params: loginParamsType): Promise<requestType> => {
  console.log('====================================');
  console.log('fakeRequest-params', params);
  console.log('====================================');
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve({ success: true, code: 200, msg: '登录成功' })
    }, 100);
  })
}

export const logoutService = (): Promise<requestType> => {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve({ success: true, code: 200, msg: '退出成功' })
    }, 100);
  })
}
